package org.huangrui.spark.scala.core.rdd.instance

import org.apache.spark.{SparkConf, SparkContext}

/**
 * @Author hr
 * @Create 2024-10-16 6:50 
 */
object Spark01_Env {
  def main(args: Array[String]): Unit = {
    // TODO 创建Spark的运行配置
    val conf = new SparkConf().setAppName("Spark01_Env").setMaster("local[*]")
    //TODO 创建Spark的运行环境
    val sc = new SparkContext(conf)
    //TODO 释放资源
    sc.stop()
  }
}
